#include <iostream>
#include <string>
#include <time.h>
#include <math.h>

#include "predictors/predictor_link.h"
#include "arenas/arena_1dfood.h"
#include "machine.h"
#include "machine_factory.h"

using namespace std;

void run(Machine *m)
{
  for (float t = 1.0; t < 13.0; t += 1.0) {
    cout << ">>>> Step: t = " << t << endl;
    m->step(t);
    std::cin.get();
  }
}

void run_1d_eater(void)
{
  Machine *m = Machine_factory::create(string("eater1D"));

  run(m);
}

void run_2d_eater(void)
{
  Machine *m = Machine_factory::create(string("eater2D"));

  run(m);
}

int main(int argn, char **argv)
{
  //run_1d_eater();
  run_2d_eater();
}
